package com.sxj.springsourcecode.springframework.factory;

import com.sxj.springsourcecode.springframework.exception.BeanException;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ProjectName: spring-source-code
 * @Package: com.sxj.springsourcecode.springframework.bean
 * @ClassName: BeanFactory
 * @Author: sxj
 * @Description:
 * @Date: 2024/2/21 10:45
 * @Version: 1.0.0
 */
public interface BeanFactory {
    /**
     * 获取bean对象
     * @param beanName
     */
    Object getBean(String beanName);

    /**
     * 获取bean对象
     * @param beanName
     * @param args
     */
    Object getBean(String beanName,Object... args);

}
